home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mc51bugs / q32842 < prev    next >
Text File  |  1988-07-29  |  873b  |  46 lines

  1. Q32842 Source that Hangs the Compiler
  2. C Compiler
  3. 5.10   | 5.10
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.    The code below will hang the third pass of the Microsoft C Compiler
  8. Version 5.10. This problem can be avoided by compiling with
  9. optimization disabled ( /Od ).
  10.  
  11. More Information:
  12.    The following is a code example:
  13.  
  14. #include <stdio.h>
  15.  
  16. #define  MAXCHAR 255
  17. #define  EOL 13
  18.  
  19. char instring[MAXCHAR] ;
  20. int  portno ;
  21.  
  22. int WriteOutput ( int portno )
  23. {
  24.  
  25. int i ;
  26. int errorcode ;
  27.  
  28. if ( portno == 0 )
  29.   printf ("%s", instring ) ;
  30.  
  31. if ( portno == 1 )
  32.   for ( i = 0 ; instring[i] =! EOL ; i++ )
  33.    {
  34.      if ( errorcode = wrtch_a1 ( portno, instring[i] ) != 0 )
  35.        errmsg (" Kan ej skriva till modemet ", errorcode, 0 );
  36.    }
  37.  
  38. if ( portno == 2 )
  39.   {
  40.   }
  41. }   /* end of function WriteOutput */
  42.  
  43.  
  44. Keywords:  buglist5.10 qfbv
  45. Updated  88/07/29 12:16
  46.